package me.springboot.mybatis.model;

import java.util.Date;
import javax.persistence.*;

@Table(name = "sys_user")
public class User {
    @Id
    @Column(name = "u_id")
    private Integer uId;

    private String account;

    private String name;

    private String password;

    private String email;

    private String address;

    private String phone;

    /**
     * 1:admin;2:普通用户
     */
    private Integer role;

    /**
     * 1:系统用户；2：巡检人
     */
    private String type;

    /**
     * 负责
     */
    private String fuze;

    private Integer isAdd;

    private String remarks;

    @Column(name = "create_date")
    private Date createDate;

    @Column(name = "update_date")
    private Date updateDate;

    @Column(name = "kehu_id")
    private Integer kehuId;

    public Integer getIsAdd() {
        return isAdd;
    }

    public void setIsAdd(Integer isAdd) {
        this.isAdd = isAdd;
    }

    public Integer getKehuId() {
        return kehuId;
    }

    public void setKehuId(Integer kehuId) {
        this.kehuId = kehuId;
    }

    /**
     * @return u_id
     */
    public Integer getuId() {
        return uId;
    }

    /**
     * @param uId
     */
    public void setuId(Integer uId) {
        this.uId = uId;
    }

    public String getFuze() {
        return fuze;
    }

    public void setFuze(String fuze) {
        this.fuze = fuze;
    }

    /**
     * @return account
     */
    public String getAccount() {
        return account;
    }

    /**
     * @param account
     */
    public void setAccount(String account) {
        this.account = account;
    }

    /**
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * @return email
     */
    public String getEmail() {
        return email;
    }

    /**
     * @param email
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * @return address
     */
    public String getAddress() {
        return address;
    }

    /**
     * @param address
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * @return phone
     */
    public String getPhone() {
        return phone;
    }

    /**
     * @param phone
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * 获取1:admin;2:普通用户
     *
     * @return role - 1:admin;2:普通用户
     */
    public Integer getRole() {
        return role;
    }

    /**
     * 设置1:admin;2:普通用户
     *
     * @param role 1:admin;2:普通用户
     */
    public void setRole(Integer role) {
        this.role = role;
    }

    /**
     * 获取1:系统用户；2：巡检人
     *
     * @return type - 1:系统用户；2：巡检人
     */
    public String getType() {
        return type;
    }

    /**
     * 设置1:系统用户；2：巡检人
     *
     * @param type 1:系统用户；2：巡检人
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * @return remarks
     */
    public String getRemarks() {
        return remarks;
    }

    /**
     * @param remarks
     */
    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    /**
     * @return create_date
     */
    public Date getCreateDate() {
        return createDate;
    }

    /**
     * @param createDate
     */
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    /**
     * @return update_date
     */
    public Date getUpdateDate() {
        return updateDate;
    }

    /**
     * @param updateDate
     */
    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }
}